<script type="text/javascript">
	function showDetailsInfo(){
		//alert(pro_id);
		var url = "<?php echo SystemProperties::$app_host; ?>"+"/user/listuser/1";
		//alert(url);
		doPost(url,'commentsProfile','productFreeDiv');
	}
	function textCounter(field, maxlimit) { 
			field=$(field.id);
			if (field.value.length > maxlimit) {
			field.value = field.value.substring(0, maxlimit);
			return; 
			}
			
	} 
</script>
<?php echo $form->create('user',array('action' => 'listUser','name'=>'commentsProfile','id'=>'commentsProfile')); ?>	
	
	
<table width="100%" border="0" cellspacing="1"  cellpadding="0" class="navi">

  <tr>
  <td>
	<select name="data[user][select]" id="UserGender">
	<option value="1">全部</option>
	<option value="2">按uid查询</option>
	<option value="3">按名称(昵称)查询</option>
	<option value="4">按真实姓名查询</option>
	</select>
  </td>
   <td align="left"  width="679"><label class="textbox" ><?php echo $form->text('user.name',array('onKeyDown'=>'textCounter(this,100)')); ?></label></td>
   <td align="center"><?php echo $form->button('查询',array('OnClick'=>"showDetailsInfo()",'class'=>'comment_btn_Submit')); ?></td>
    <td width=60%></td>
  </tr>
  
</table>
<?php echo $form->end();?>	

<form action="searchUserByWhere" name='sbw' id="sbw" >
<table width="100%" border="0" cellspacing="1"  cellpadding="0" class="navi">

  <tr>
  <td  width="300">
  按地址关键词搜索<br />
  (搜索较慢，请不要连续频繁搜索）
  </td>
   <td align="left"  width="300">
   <input type="text" name="where" id="where"></input>
   </td>
   <td align="center">
   <input type="submit" value="搜索"></input>
   </td>
    <td width=20%>  </td>
  </tr>
  
</table>
</form>

<table width="100%" border="0" cellspacing="1" cellpadding="0"  class="list" >
          <tr>
   	 <th >用户信息管理</th>
  	</tr>
          <tr>
          	<td >
	        	<div id="productFreeDiv">
	      	 		<?php require_once(APP.'views'.DS.'user'.DS.'user_list.ctp'); ?>
	      	 	</div>          		
          	</td>
          </tr>
		   
        </table>










		